package com.example.mac.zyfypt_314wmy.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.example.mac.zyfypt_314wmy.R;

public class RegisterActivity extends AppCompatActivity implements View.OnClickListener{

    private TextView tv1,tvzhuce,tvqing,tvname,tvpw,tvqpw;
    private Button btfh,btzx;
    private EditText et1,et2,et3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        init();
    }

    private void init() {
        tv1=(TextView)findViewById(R.id.textView5);
        tvzhuce=(TextView)findViewById(R.id.textView6);
        tvqing=(TextView)findViewById(R.id.textView7);
        tvname=(TextView)findViewById(R.id.textView8);
        tvpw=(TextView)findViewById(R.id.textView9);
        tvqpw=(TextView)findViewById(R.id.textView10);

        et1=(EditText)findViewById(R.id.editText3);
        et2=(EditText)findViewById(R.id.editText4);
        et3=(EditText)findViewById(R.id.editText5);

        btfh=(Button)findViewById(R.id.button3);
        btzx=(Button)findViewById(R.id.button4);

        btfh.setOnClickListener(this);
        btzx.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId())
        {
            case R.id.button3:
                finish();
                break;
        }

    }
}
